package com.bluestar.tools;

import android.app.Application;

import com.qmuiteam.qmui.arch.QMUISwipeBackActivityManager;

public class MyApplication extends /*MultiDexApplication */  Application {

    private static MyApplication INSTANCE = null;

    @Override
    public void onCreate() {
        super.onCreate();
        //LogcatHelper.getInstance(this).start();
        // bugly
        //第三个参数为SDK调试模式开关，调试模式的行为特性如下：
        //输出详细的Bugly SDK的Log；
        //每一条Crash都会被立即上报；
        //自定义日志将会在Logcat中输出。
        //建议在测试阶段建议设置成true，发布时设置为false
        //CrashReport.initCrashReport(getApplicationContext(), "590e21b35f", true);
        INSTANCE = this;
        QMUISwipeBackActivityManager.init(this);
    }

    public static MyApplication getApplication() {
        return INSTANCE;
    }
}